home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime vr / vrscript / feature files / vreffects.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.9 KB  |  80 lines

  1. //////////
  2. //
  3. //    File:        VREffects.h
  4. //
  5. //    Contains:    QuickTime video effects support for QuickTime VR movies.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         12/13/96    rtm        first file
  14. //       
  15. //////////
  16.  
  17. #pragma once
  18.  
  19. //////////
  20. //
  21. // header files
  22. //
  23. //////////
  24.  
  25. #include <ImageCompression.h>
  26. #include <ImageCodec.h>
  27.  
  28. #include "ComApplication.h"
  29.  
  30. #if TARGET_OS_MAC
  31. #include "MacFramework.h"
  32. #endif
  33.  
  34. #if TARGET_OS_WIN32
  35. #include "WinFramework.h"
  36. #endif
  37.  
  38. #include "VRScript.h"
  39.  
  40.  
  41. //////////
  42. //
  43. // compiler flags
  44. //
  45. //////////
  46.  
  47. #define USES_MAKE_IMAGE_DESC_FOR_EFFECT    1        // use MakeImageDescriptionForEffect (QT 4.0 and later)
  48.  
  49.  
  50. //////////
  51. //
  52. // constants
  53. //
  54. //////////
  55.  
  56. #define kSourceOneName                    FOUR_CHAR_CODE('srcA')
  57. #define kSourceTwoName                    FOUR_CHAR_CODE('srcB')
  58. #define kSourceNoneName                    FOUR_CHAR_CODE('srcZ')
  59.  
  60. #define kDefaultNumSteps                50        // the number of steps in a transition
  61. #define kDoIdleStep                        10        // the number of steps we take before giving scene-wide sound-only movies some idle time
  62.  
  63.  
  64. //////////
  65. //
  66. // function prototypes
  67. //
  68. //////////
  69.  
  70. void                        VREffects_InitWindowData (WindowObject theWindowObject);
  71. void                        VREffects_DumpWindowData (WindowObject theWindowObject);
  72. Boolean                        VREffects_DoIdle (WindowObject theWindowObject);
  73. VRScriptTransitionPtr        VREffects_GetTransitionEffect (WindowObject theWindowObject, UInt32 fromNodeID, UInt32 toNodeID);
  74. QTAtomContainer                VREffects_MakeEffectDescription (OSType theEffectType, long theEffectNum, OSType theSourceName1, OSType theSourceName2);
  75. ImageDescriptionHandle        VREffects_MakeSampleDescription (OSType theEffectType, short theWidth, short theHeight);
  76. OSErr                        VREffects_SetupTransitionEffect (WindowObject theWindowObject, UInt32 fromNodeID, UInt32 toNodeID);
  77. OSErr                        VREffects_RunTransitionEffect (WindowObject theWindowObject);
  78. void                        VREffects_DumpEntryMem (VRScriptTransitionPtr theEntry);
  79.  
  80.